package com.fresh.service;

import java.util.List;

import com.fresh.entity.ExternalDataEntity;
import com.fresh.entity.UserEntity;
import com.fresh.utils.PageModel;


/**   
 * @Title: 123
 * @Description: 123
 * @author jeeweb
 * @date 2017-10-10 11:03:42
 * @version V1.0   
 *
 */
public interface IExternalDataService {

	/**
	 * @param gmc
	 * @param 订单一览
	 */
	public List<ExternalDataEntity> getExternalData(String userId);
	
	/**
	 * @param 获取单个用户总条数数据
	 * @param gmc
	 * @param mobile
	 * @return
	 */
	public int getExternalDataCount(String userId);

	/**
	 * @param 根据商户编号得到员工信息
	 * @param gmc
	 * @param shopId 
	 * @return
	 */
	public List<UserEntity> getUser(String shopId);
	
	/**
	 * @param 根据员工编号得到员工信息
	 * @param gmc
	 * @param shopId 
	 * @return
	 */
	public UserEntity queryById(String id);
	
	/**
	 * @param 根据订单编号获取信息
	 * @param gmc
	 * @param shopId 
	 * @return
	 */
	public ExternalDataEntity queryExternal(String id);
	
	/**
	 * @param 删除成功
	 * @param gmc
	 * @param shopId 
	 * @return
	 */
	public Boolean updateExternalByUserId(String userId);
	
	/**
	 * @param 删除
	 * @param gmc
	 * @param Id 
	 * @return
	 */
	public Boolean updateUserById(String id);
	
	/**
	 * @param 分页
	 * @param gmc
	 * @param Id 
	 * @return
	 */
	public PageModel<ExternalDataEntity> queryPage(int currentPage,int size,String id);
	
	public int queryCount(String id);
	
	/**
	 * @param 分页查询
	 * @param gmc
	 * @param startIndex  size 
	 * @return
	 */
	public PageModel<ExternalDataEntity> queryOrderPage(int currentPage,int size,String id);
	
	public int queryOrderCount(String id);
}

